package com.clouds.wms.service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.clouds.wms.bean.Purmf;
import com.clouds.wms.exception.DatabaseException;
import com.clouds.wms.exception.SysException;
import com.clouds.wms.util.PagesBean;

public interface PurmfService {
	PagesBean getPurmfList(String meaa,String meab,int offset, int pageSize) throws SysException;
	int savePurcb(Purmf purmf)throws SysException;
	int updatePurcb(Purmf purmf)throws SysException;
	int getMaxMfac()throws SysException;
	int delPurmf(String mfaa, String mfab, String mfacs)throws SysException;
	int changeStatus(String mfaa, String mfab, String status)throws SysException;
	@Transactional(propagation=Propagation.REQUIRED, rollbackFor=DatabaseException.class)
	void delPurmemf(String meaa, String meab)throws SysException;
	void delPurmfAll(String meaa, String meab)throws SysException;
}
